import service from "../utils/request";

//管理员登陆
export function Login(data) {
    return service({
        url: '/admin/login',
        method: 'post',
        data: data  
    })
}
//获取管理员信息
export function getadmin(){
    return service({
        url: '/admin/queerybyID',   
        method: 'get',
    })
}
//更新管理员信息
export function Updateadmin(data){
    return service({
        url: '/admin/updateadmin',
        method: "put",
        data:data
    })
}


//获取所有 用户
export function FindAllUser() {
    return service({
        url: "/user",
        method: "get"
    })
}

//更新用户
export function UpdateUser(data) {
    return service({
        url: "/user",
        method: "put",
        data: data
    })
}
